import Vue from 'vue'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import './permission' // permission
Vue.use(plugins)

Vue.config.productionTip = false
Vue.prototype.$store = store

App.mpType = 'app'

import { goBack,goTo,goTab  } from "@/utils/commonjs.js";
Vue.prototype.goBack = goBack
Vue.prototype.goTo = goTo
Vue.prototype.goTab = goTab

// 全局组件绑定:
import flightItem from "@/pages/flight/flightItem";
import billItem from "@/pages/signBill/billItem";
import card from "@/components/card";
Vue.component('flightItem', flightItem)
Vue.component('billItem', billItem)
Vue.component('card', card)

// 插件引入
import uView from 'uview-ui'
Vue.use(uView)

const app = new Vue({
  ...App
})

app.$mount()
